package org.xbzheng.restful_study.util;

/**
 * Created by Administrator on 2016/11/1.
 */
public class ResponseEntity {
    private ResponseStatus status;
    private Object[] data;
    private ResponseError error;

    public ResponseEntity() {
    }

    public ResponseEntity(ResponseStatus status, Object[] data, ResponseError error) {
        this.status = status;
        this.data = data;
        this.error = error;
    }

    public ResponseStatus getStatus() {
        return status;
    }

    public void setStatus(ResponseStatus status) {
        this.status = status;
    }

    public Object[] getData() {
        return data;
    }

    public void setData(Object[] data) {
        this.data = data;
    }

    public ResponseError getError() {
        return error;
    }

    public void setError(ResponseError error) {
        this.error = error;
    }
}
